#include "LocalStatic.h"
#include <atomic>

std::atomic_int count(0);
LocalStatic::_Inner LocalStatic::m_inner = _Inner();

LocalStatic::LocalStatic(void)
{
    count++;
    printf("***************create LocalStatic instance, count :%d\n", count.load());
}


LocalStatic::~LocalStatic(void)
{
    count--;
    printf("***************destroy LocalStatic instance, count :%d\n", count.load());
}

LocalStatic* LocalStatic::GetInstance()
{
    static LocalStatic* instance = new LocalStatic;
    return instance;
}
